package com.haiya.mediator.conceptdemo;

/**
 * 虚拟同事类
 */
public abstract class Colleague {
    protected Mediator mediator;

    public Mediator getMediator() {
        return mediator;
    }

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    public abstract void send(String msg);

    public abstract void receive(String msg);
}
